<?php
/**
 * misc.php
 * Date & Time: 02/26/2015 - 17:28
 * @author: Geoffrey Embuscado
 * Description: Extra functions before resourcing other controller.
 * Note: Guys dito niyo na lang ilagay yung mga Routes ng pagexport ng reports at uploads
 */

// User Image Upload - Create
Route::post('user/uploadNewUserImage', [ 'uses' => 'UserController@uploadNewUserImage']);

// User Signature Upload - Create
Route::post('user/uploadNewUserSignatureImage', [ 'uses' => 'UserController@uploadNewUserSignatureImage']);

// User Image Upload - Edit
Route::post('user/uploadUserImage/{id}', ['uses' => 'UserController@uploadUserImage']);

// User Signature Upload - Edit
Route::post('user/uploadUserSignatureImage/{id}', [ 'uses' => 'UserController@uploadUserSignatureImage']);
// Processing Items Data Retrieving Per Company
Route::get('processing/getOrderItems/{selected_items}/{vendor}/{enable_po?}', ['uses' => 'ProcessingController@getOrderItems'] );

// PO get Details
Route::get('po/getPurchaseOrderdetails/{id}', [ 'uses' => 'PurchaseOrderController@getPurchaseOrderdetails' ]);

// Po Export
Route::get('po/export/{id}/{template?}/{print?}', 'PurchaseOrderController@export');

// Po Export List
Route::get('po/export-list/{print?}', 'PurchaseOrderController@exportList');

// Approve selected PO
Route::post('po/approvePurchaseOrders', [ 'uses' => 'PurchaseOrderController@approvePurchaseOrders' ]);

// Upload of Approved PO status
Route::get('po/uploadPurchaseOrderStatus', [ 'uses' => 'PurchaseOrderController@uploadPurchaseOrderStatus' ]);

Route::post('po/postUploadPurchaseOrderStatus', [ 'uses' => 'PurchaseOrderController@postUploadPurchaseOrderStatus' ]);

// Upload of Sales Order Order Status 
Route::get('for-delivery/uploadSalesOrderStatus', [ 'uses' => 'ForDeliveryController@uploadSalesOrderStatus' ]);

// Upload of Sales Order Status POST ajax
Route::post('for-delivery/postSalesOrderStatus', [ 'uses' => 'ForDeliveryController@postSalesOrderStatus' ]);

// Generate PickList
//Route::get('for-delivery/generatePicklist', [ 'uses' => 'ForDeliveryController@generatePicklist' ]);

Route::get('for-delivery/generatePicklist', [ 'uses' => 'ForDeliveryController@generatePicklist' ]);


